<script language="javascript">
function searchorderInputKeyDown(event)
{
	if(document.getElementById('searchNumber').value == '')
	{
		return;
	}
    if((event.keyCode || event.which) == 13)
    {
    	document.location = 'search.php?act=search&number='+document.getElementById('searchNumber').value;
    }
}
</script>
<div id="btn"><!-- start #btn //-->
  <div id="btn1"><!-- start #btn1 //-->
<ul class="nav">
            <li class="btna"><a href="index.php"> 班尼頓客服系統 <div class="hoverBtna" style="opacity: 0;"></div></a></li>
            <?php
            if(SessionUtil::isExistVar(constant('SESSION_KEY_USER_ID')) && 
				(SessionUtil::getVar(constant('SESSION_KEY_USER_IS_ADMIN')) == 'Y'
				||SessionUtil::getVar(constant('SESSION_KEY_USER_IS_CSR')) == 'Y'))
				{
			?>
			<li class="btnb"><a href="add-cos.php"> 新增客戶 <div class="hoverBtnb" style="opacity: 0;"></div></a></li>
			<?php
			}
            ?>
            
             <li class="btni"><a href="order.php">預約 <div class="hoverBtni" style="opacity: 0;"></div></a></li>
            <li class="btnc"><a href="order.php?type=photo"> 拍照 <div class="hoverBtnc" style="opacity: 0;"></div></a></li>
            <li class="btnd"><a href="order.php?type=proof"> 看樣 <div class="hoverBtnd" style="opacity: 0;"></div></a></li>
            <li class="btne"><a href="order.php?type=pickup"> 取件 <div class="hoverBtne" style="opacity: 0;"></div></a></li>
            <li class="btnf"><a href="order.php?type=undetermined"> 未定 <div class="hoverBtnf" style="opacity: 0;"></div></a></li>
            <li class="btng"><a href="search.php"> 查詢 <div class="hoverBtng" style="opacity: 0;"></div></a></li>
            <?php if(SessionUtil::isExistVar(constant('SESSION_KEY_USER_ID')) && SessionUtil::getVar(constant('SESSION_KEY_USER_IS_ADMIN')) == 'Y')
				{		
			?>
            <li class="btnh"><a href="backstage.php"> 後台 <div class="hoverBtnh" style="opacity: 0;"></div></a></li>
            <?php }?>
             <li class="btnk"><a href="logout.php"> login out <div class="hoverBtnk" style="opacity: 0;"></div></a></li>
             <?php
            if(SessionUtil::isExistVar(constant('SESSION_KEY_USER_ID')) && 
				(SessionUtil::getVar(constant('SESSION_KEY_USER_IS_ADMIN')) == 'Y'
				))
				{
			?>
             <li class="btnv"><a href="import.php"> 匯入訂單 <div class="hoverBtnv" style="opacity: 0;"></div></a></li>
       <?php
			}
            ?>
		</ul>
        <div class="btnj"><input name="number" id="searchNumber" type="text" class="maine-keyinq" value="<?php if(isset($_REQUEST['number'])){ echo Util::html_safe($_REQUEST['number']);}?>" onkeydown="searchorderInputKeyDown(event)"/></div>
        </div><!-- end #btn1 //-->
    <div id="btn3"><input name="left_menu_date" class="datepicker" value="<?php echo AppMain::getCurrentDate();?>" onchange="document.location='index.php?act=setdate&value='+this.value;"/></div>
    
    <div>
    </div>
</div>